home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
WORDMISC
/
WRITTOOL.LZH
/
DUP.DOC
< prev
next >
Wrap
Text File
|
1986-12-22
|
974b
|
25 lines
-------------------------------------------------------------------------------
DUP
-------------------------------------------------------------------------------
Summary:
dup [< filename]
DUP is a text filter that creates a unique list of all the duplicate lines in
a file; given a sorted list as its input.
Examples:
Create a list of the duplicate words in FILE1 and FILE2.
copy file1+file2 temp Make one file.
sort < temp | dup > result Sort file and save in RESULT.
del temp Garbage collection.
Make a list of the redundant files in two subdirectories named ONE and TWO.
dir one > temp Take the directory of ONE.
dir two >> temp Add to it the directory of TWO.
sort < temp | dup > result Sort file and save in RESULT.
del temp Garbage collection.